package top.korori.system.entity.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Email;
import javax.validation.constraints.Size;
import java.io.Serializable;

@ApiModel("修改信息参数")
@Getter
@Setter
public class MyInfoBo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Size(max = 12,message = "用户名最长12位")
    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("性别(0未设置 1男 2女 3保密)")
    private Integer sex;

    @Email(message = "非法邮箱")
    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("手机号")
    private String phone;


}
